<template>
  <BasicDrawer @register="register" v-bind="$attrs" :isDetail="true" @open-change="open_change" :title="record?.name">
    <NurseDeptList v-if="show" :hospitalId="record?.id" />
  </BasicDrawer>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
import { BasicDrawer, useDrawerInner } from '/@/components/Drawer';
import NurseDeptList from './NurseDept/NurseDeptList.vue';

const record = ref()

const [register] = useDrawerInner((data) => {
  record.value = data?.record
});

const show = ref(false)

const open_change = (visible) => {
  show.value = visible
}

</script>
